package com.vfa.test;

import java.util.ArrayList;

import android.content.Context;
import android.database.Cursor;
import android.util.Log;

public class AnswerData {

	public DataHelperTest datahelp;
	public AnswerData(Context context){
		datahelp = new DataHelperTest(context);
	}
	
	public void DeleteData(String id){
		String sql = "DELETE FROM "+datahelp.tbAnswer+" WHERE "+datahelp.colAnswerID+" = "+id;
    	datahelp.ExeSQLData(sql);
	}
	
	public void UpdateData(String id, String newanswer){
		String sql = "UPDATE "+datahelp.tbAnswer+" SET "
				+datahelp.colQuestion+" ='"+newanswer+"'  where "
				+datahelp.colAnswerID+" =  "+id;
	}
}
